package com.oa.pm.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel("考勤报表")
@TableName("pm_attendance_report")
@Data
public class AttendanceReport extends Model<AttendanceReport> {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("报表名称")
    private String reportName;

    @ApiModelProperty("状态(1-处理中,2-已完成)")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
